<?php

namespace app\api\controller;

use app\common\controller\Frontend;

use app\api\model\Tavern as TM;
use app\api\model\Tariff as TAM;
use app\api\model\Quality as QM;
use app\api\model\Label as LM;
/*
 * 酒店列表
 * */
class Tavern extends Frontend
{

    protected array $noNeedLogin = ['*'];

    public function initialize(): void
    {
        parent::initialize();
    }

    /*
     * 价格分类
     * */
    public function tList()
    {
        return json((new TAM())->getTavern($this->request_array));
    }

    /*
     * 星级分类
     * */
    public function qList()
    {
        return json((new QM())->getQuality($this->request_array));
    }


    /*
     * 筛选分类
     * */
    public function searchList()
    {
        return json((new LM())->getLabel($this->request_array));
    }



    /*
     * 列表
     * */
    public function index()
    {
        return json((new TM())->getTavern($this->request_array));
    }


    /*
      * 子酒店列表
      * */
    public function childTavern()
    {
        return json((new TM())->childTavern($this->request_array));
    }


    /*
      * 子酒店详情
      * */
    public function desc()
    {
        return json((new TM())->desc($this->request_array));
    }



}